package com.goktech.olala.core.service;

import com.github.pagehelper.PageInfo;
import com.goktech.olala.core.req.ReqPicture;
import com.goktech.olala.core.resp.RespPictureVo;
/**
 * @author wusq
 * 图片 service层接口
 */
public interface IPictureService {
    /**
     * 多条件查询图片
     * @param reqPicture
     * @param pageNum
     * @param pageSize
     * @return
     * @throws Exception
     */
    PageInfo<RespPictureVo> queryPictureByParam(ReqPicture reqPicture, int pageNum, int pageSize) throws Exception;

    /**
     * 通过id查询
     * @param pictureId
     * @return
     * @throws Exception
     */
    RespPictureVo queryPictureById(Long pictureId) throws Exception;

    /**
     * 通过id删除
     * @param pictureId
     * @return
     * @throws Exception
     */
    int removePictureById(Long pictureId) throws Exception;

    /**
     * 批量删除
     * @param pictureIds
     * @return
     * @throws Exception
     */
    int removePictureBatch(String pictureIds) throws Exception;

    /**
     * 图片新增
     * @param reqPicture
     * @return
     * @throws Exception
     */
    int savePictureInfo(ReqPicture reqPicture) throws Exception;

    /**
     * 修改图片的状态值
     *
     * @param pictureId
     * @param status
     * @return
     * @throws Exception
     */
    int updatePictureStatus(Long pictureId, int status) throws Exception;
}
